package daa.levelup.lists;


import java.util.LinkedList;

public class LinkList {


    public LinkList() {

    }

    public static void main(String[] args) {

        System.out.println("enter elements ");
        LinkedList<Books> linkList = new LinkedList<Books>();


        linkList.add(new Books(500, "Shildt"));
        linkList.add(new Books(5250, "Habibulin"));
        linkList.add(new Books(50, "Morris"));
        linkList.add(new Books(100, "Mc'connel"));


        for (Books e : linkList) {
            System.out.println("name " + e.getName() + ". price " + e.getPrice());

        }







    }
}
